diff options
Diffstat (limited to 'templates/etc_jail.conf.d_[jailname].conf.j2')
| -rw-r--r-- | templates/etc_jail.conf.d_[jailname].conf.j2 | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/templates/etc_jail.conf.d_[jailname].conf.j2 b/templates/etc_jail.conf.d_[jailname].conf.j2 deleted file mode 100644 index df10f47..0000000 --- a/templates/etc_jail.conf.d_[jailname].conf.j2 +++ /dev/null @@ -1,43 +0,0 @@ -# eplXa is host end (local network bridge), eplXb is jail end. -# The corresponding pubnet interface is epwX, but that's not created for all jails. -{{ jail.name }} { - # STARTUP/LOGGING/VNET - vnet; - persist; - exec.clean; - - exec.prestart = ""; - exec.start = "/bin/sh /etc/rc"; - exec.poststart = ""; - exec.prestop = ""; - exec.stop = "/bin/sh /etc/rc.shutdown"; - exec.poststop = ""; - - exec.consolelog = "/var/log/jail_console_${name}.log"; - - # PERMISSIONS - allow.raw_sockets; - exec.clean; - mount.devfs; - - # HOSTNAME/PATH - host.hostname = "${name}"; - path = "/usr/local/jails/containers/${name}"; - - # JAIL-SPECIFIC CONFIGURATION -{% set t = lookup( - 'ansible.builtin.first_found', - { - 'files': [ - 'jail_confs/' ~ jail.name ~ '.j2', - 'jail_confs/_default.j2', - ], - 'paths': [ playbook_dir ~ '/templates' ] - }, - errors='ignore' -) %} - -{% if t %} -{{ lookup('ansible.builtin.template', t) | indent(2, true) }} -{% endif %} -} |
